package core

import (
	"energy-amiot-platform/x/catpcha"

	"github.com/mojocn/base64Captcha"
)

var (
	Captcha captchaTool
)

type captchaTool struct {
	*base64Captcha.Captcha
}

/**
 * 初始化验证码工具
 */
func (c *captchaTool) setup() {
	//定义一个driver
	Captcha.Captcha = catpcha.NewCaptcha(REDIS.Client)
}
